<?php
include_once("../inc/Function.php");
if($_SESSION['a']['alevel']!=5 && $power['hylb']!=1){
	echo "<script>alert('权限不足');window.location.href='index.php';</script>";exit;
}
if(isset($_GET['uid'])){
	$id = intval($_GET['uid']);
	$userinfo = userinfo1($id);
	if(count($userinfo)==0){header("Location:userlist.php");exit;}
}
else{
	header("Location:userlist.php");exit;
}
$page = isset($_GET['page'])?$_GET['page']:1;
$uname = isset($_GET['uname'])?$_GET['uname']:"";
$level = isset($_GET['level'])?$_GET['level']:0;
$tlevel = isset($_GET['tlevel'])?$_GET['tlevel']:0;

$tpl->assign('level',$level);
$tpl->assign('tlevel',$tlevel);
$tpl->assign('uname',$uname);
$tpl->assign('page',$page);

$tpl->assign("tdarr",$tdarr);
$tpl->assign("tdarr1",$tdarr1);
$tpl->assign("v",$userinfo);
$tpl->show('useredit');
?>